package humanResource.staffManagement;

import entity.AccessRole;
import java.util.List;
import java.util.Set;
import javax.ejb.Remote;

@Remote
public interface RoleManagementSessionRemote {

    boolean assignRole(long staffAccounID, Set<Long> RoleID);

    long createRole(String roleName, Set<String> access);

    boolean editRole(long roleID, String roleName, Set<String> access);

    List<AccessRole> getAllRoles();

    Set<String> getRoleAccess(long roleID);

    AccessRole getRoleByName(String roleName);

    void removeRole(String roleName);

    boolean setRoleAccess(long roleID, Set<String> access);
    
}
